<%-- $Id: discLatest.jsp 248 2007-03-09 12:09:03Z huijzer $ --%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>

	<head>
		<title>Disc :: List</title>
		<meta name="object" content="disc">
	</head>

	<body>

		<div id="apphead">
			<h2>Disc :: <em>Latest</em></h2>
		</div>

		<div id="projecthome" class="app">

			<table border="1" cellspacing="2" cellpadding="3" width="100%">
				<tr>
					<th>&nbsp;</th>
					<th>Title</th>
					<th nowrap="nowrap">Artist</th>
					<th nowrap="nowrap">Year</th>
					<th nowrap="nowrap">AMG Rating</th>
					<th nowrap="nowrap">Actions</th>
				</tr>
				<c:forEach items="${list}" var="disc" varStatus="status">
					<tr class="${status.count % 2 == 0 ? 'b' : 'a'}">
						<td>
							<c:if test="${not empty disc.cover}">
								<img width="40" height="40" src="<c:url value="/admin/discCoverDisplay.action?id=${disc.id}"/>"/>
							</c:if>
						</td>
						<td><a href="<c:url value="/admin/discDisplay.action?id=${disc.id}"/>">${disc.title}</a></td>
						<td nowrap="nowrap">${disc.artist.name}</td>
						<td nowrap="nowrap">${disc.year}</td>
						<td nowrap="nowrap">
							<c:if test="${not empty disc.amgRating}">
								<img src="<c:url value="/image/${disc.amgRating}.gif"/>"/>
							</c:if>
						</td>
						<td nowrap="nowrap">
							<a href="<c:url value="/admin/discEdit.action?id=${disc.id}"/>">edit</a>
							<a href="<c:url value="/admin/discExport.action?id=${disc.id}"/>">export</a>
						</td>						
						
					</tr>
				</c:forEach>
			</table>

		</div>

	</body>

</html>
